#include <ros/ros.h>
#include <chat_msgs/chat.h>


void chat_callback(chat_msgs::chat msgs)
{
  ROS_INFO("grade = %s   start = %lld  data = %s", msgs.grade.c_str(), msgs.start, msgs.data.c_str());
  
}
int main(int argc, char* argv[])
{
  setlocale(LC_ALL, "zh_CN.utf-8");
  ros::init(argc, argv, "sub_node");
  ros::NodeHandle nh;
  ros::Subscriber sub =  nh.subscribe("chat", 10, &chat_callback);
  ros::spin();
    return 0;
}